package com.mightybird.designpattern.behavioral.chainofresponsibility.concrete;

import com.mightybird.designpattern.behavioral.chainofresponsibility.Handler;

public class GeneralManager extends Handler {
    public GeneralManager(String name) {
        super(name);
    }

    @Override
    public void handleRequest(int leave) {
        if (leave < 30) {
            System.out.println(name + "总经理审批通过：" + leave + "天假期");
        } else {
            System.out.println("假期大于等于30天，审批不通过：" + leave + "天假期");
        }
    }
}
